package com.goods.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.common.domain.GoodsVo;
import com.common.param.GoodsParam;
import com.common.query.QueryResult;
import com.goods.dao.SearchGoodsWithLuceneDao;
import com.goods.service.SearchGoodsWithLuceneService;

/**
 * 
 * @author penghui.li
 *
 */
@Service
public class SearchGoodsWithLuceneServiceImpl implements  SearchGoodsWithLuceneService{
	
	@Resource
	private SearchGoodsWithLuceneDao searchGoodsWithLuceneDao;
	
	
	/**
	 * 通过lucene查询商品信息
	 * @param param
	 * @return
	 */
	public QueryResult<GoodsVo> queryGoodsWithLucene(GoodsParam param) throws Throwable{
		return searchGoodsWithLuceneDao.queryGoodsWithLucene(param);
	}
}
